package cn.iocoder.yudao.module.enterprise.controller.admin.emissionsource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
* 排放源和温室气体关联 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
public class EmissionGaseBaseVO {

    @Schema(description = "温室气体ID", required = true)
    @NotNull(message = "温室气体ID不能为空")
    private Long gaseId;

    @Schema(description = "因子数值", required = true)
    @NotNull(message = "因子数值不能为空")
    private Double value;

    @Schema(description = "因子单位（分子）", required = true)
    @NotNull(message = "因子单位（分子）不能为空")
    private String unitLeft;

    @Schema(description = "因子单位（分母）", required = true)
    @NotNull(message = "因子单位（分母）不能为空")
    private String unitRight;

}
